package com.langfeiyes.pattern.iterator;

public interface Iterator<E> {

    /**
     * 获取元素
     * @return
     */
    E next();
    /**
     * 有下一个元素么
     * @return
     */
    boolean hasNext();

}
